<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
	
	<div class="form-group">
		<label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
		<div class="col-xs-12 col-sm-8">
			<input id="c-name" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
		</div>
	</div>
	<div class="form-group">
		<label class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
		<div class="col-xs-12 col-sm-8">
			<input id="c-mobile" class="form-control" name="row[mobile]" type="text" value="{$row.mobile|htmlentities}">
		</div>
	</div>
	<div class="form-group">
		<label class="control-label col-xs-12 col-sm-2">{:__('Genderstatus')}:</label>
		<div class="col-xs-12 col-sm-8">
			
			<div class="radio">
				{foreach name="genderstatusList" item="vo"}
				<label for="row[genderstatus]-{$key}"><input id="row[genderstatus]-{$key}" name="row[genderstatus]"
															 type="radio" value="{$key}" {in name="key"
															 value="$row.genderstatus" }checked{/in} /> {$vo}</label>
				{/foreach}
			</div>
		
		</div>
	</div>
	<div class="form-group">
		<label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
		<div class="col-xs-12 col-sm-8">
			<input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname"
				   class="form-control selectpage" name="row[user_id]" type="text" value="{$row.user_id|htmlentities}">
		</div>
	</div>
	<div class="form-group">
		<label class="control-label col-xs-12 col-sm-2">{:__('Detail')}:</label>
		<div class="col-xs-12 col-sm-8">
			<input id="c-detail" class="form-control" name="row[detail]" type="text" value="{$row.detail|htmlentities}">
		</div>
	</div>
	<div class="form-group">
		<label class="control-label col-xs-12 col-sm-2">{:__('Remark')}:</label>
		<div class="col-xs-12 col-sm-8">
			<input id="c-remark" class="form-control" name="row[remark]" type="text" value="{$row.remark|htmlentities}">
		</div>
	</div>
	<div class="form-group">
		<label class="control-label col-xs-12 col-sm-2">{:__('Tagstatus')}:</label>
		<div class="col-xs-12 col-sm-8">
			
			<div class="radio">
				{foreach name="tagstatusList" item="vo"}
				<label for="row[tagstatus]-{$key}"><input id="row[tagstatus]-{$key}" name="row[tagstatus]" type="radio"
														  value="{$key}" {in name="key" value="$row.tagstatus" }checked{/in}
					/> {$vo}</label>
				{/foreach}
			</div>
		
		</div>
	</div>
	<div class="form-group">
		<label for="ssq" class="control-label col-xs-12 col-sm-2">{:__('省市区')}:</label>
		<div class="col-xs-12 col-sm-8" class="form-inline" id="ssq" data-toggle="cxselect"
			 data-selects="province,city,area">
			<select class="province form-control" name="row[province]" data-url="ajax/area">
				<option value="{$row.province_id}" selected=""></option>
			</select>
			<select class="city form-control" name="row[city]" data-url="ajax/area">
				<option value="{$row.city_id}" selected=""></option>
			</select>
			<select class="area form-control" name="row[district]" data-url="ajax/area">
				<option value="{$row.district_id}" selected=""></option>
			</select>
		</div>
	</div>
	<div class="form-group">
		<label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
		<div class="col-xs-12 col-sm-8">
			<input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" type="number"
				   value="{$row.weigh|htmlentities}">
		</div>
	</div>
	<div class="form-group">
		<label class="control-label col-xs-12 col-sm-2">{:__('Switch')}:</label>
		<div class="col-xs-12 col-sm-8">
			<input id="c-switch" data-rule="required" class="form-control" name="row[switch]" type="number"
				   value="{$row.switch|htmlentities}">
		</div>
	</div>
	<div class="form-group layer-footer">
		<label class="control-label col-xs-12 col-sm-2"></label>
		<div class="col-xs-12 col-sm-8">
			<button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
			<button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
		</div>
	</div>
</form>
